package com.sg.hms.ServiceImpl;

import java.util.ArrayList;

import com.sg.hms.Dao.RoomDao;
import com.sg.hms.DaoImpl.RoomDaoImpl;
import com.sg.hms.Model.Equiptment;
import com.sg.hms.Model.Pagebean;
import com.sg.hms.Model.Room;
import com.sg.hms.Service.RoomService;
/***
 * RoomService接口的实现累
 * @author 吴磊
 *
 */
public class RoomServiceImpl implements RoomService{
    
	RoomDao room=new RoomDaoImpl();
	@Override
	public ArrayList<Room> getRoom() {
		// TODO Auto-generated method stub
		return room.getRoom();
	}
	@Override
	public ArrayList<Room> getRoom(Pagebean pagebean) {
		// TODO Auto-generated method stub
		return room.getRoom(pagebean);
	}
	@Override
	public void DeleteRoom(String[] a, String[] b) {
		// TODO Auto-generated method stub
		room.DeleteRoom(a, b);
	}
	@Override
	public ArrayList<Room> getRoom(String key) {
		// TODO Auto-generated method stub
		return room.getRoom(key);
	}
	@Override
	public ArrayList<Room> getRoom(Pagebean pagebean, String key) {
		// TODO Auto-generated method stub
		return room.getRoom(pagebean, key);
	}
	@Override
	public void updateRoom(int rId, int eId, int count, String state) {
		// TODO Auto-generated method stub
		room.updateRoom(rId, eId, count, state);
	}
	@Override
	public String getString(int rId, int eId) {
		// TODO Auto-generated method stub
		return room.getString(rId, eId);
	}
	@Override
	public int getRidByRname(String rName) {
		// TODO Auto-generated method stub
		return room.getRidByRname(rName);
	}
	@Override
	public int getEidByEid(String eName) {
		// TODO Auto-generated method stub
		return room.getEidByEid(eName);
	}
	@Override
	public int exixt(int rId, int eId) {
		// TODO Auto-generated method stub
		return room.exixt(rId, eId);
	}
	@Override
	public int addRoom(int rId, int eId, int count, String state) {
		// TODO Auto-generated method stub
		return room.addRoom(rId, eId, count, state);
	}
	@Override
	public ArrayList<Equiptment> gEquiptments() {
		// TODO Auto-generated method stub
		return room.gEquiptments();
	}
	@Override
	public ArrayList<Equiptment> getAllEquiptment() {
		// TODO Auto-generated method stub
		return room.getAllEquiptment();
	}
	@Override
	public int updateEquiptmentNum(int eId, int num) {
		// TODO Auto-generated method stub
		return 0;
	}

}
